package com.woniuxy.carlife.carlifeuserweb.service;

import com.woniuxy.carlife.carlifecommonsweb.exception.CarlifeGlobalException;
import com.woniuxy.carlife.carlifeuserweb.entity.ChargingStationfavorites;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author zjq
 * @ClassName:ChargingStationfavoritesService
 * @Description:充电站收藏
 * @date 2021/4/6 20:02
 **/

public interface ChargingStationfavoritesService extends IService<ChargingStationfavorites> {


    /*
     * 功能描述〈查询充电站收藏根据用户id〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/12 14:34
     * @throws
     */

    public List<ChargingStationfavorites> findChargingStationfavoritesByUserId(Integer userId) ;


    /*
     * 功能描述〈删除充电站收藏〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/14 14:55
     * @throws
     */

    public Boolean deleteChargingStationfavoritesBytChargingStationfavoritesId(Integer tChargingStationfavoritesId) ;


    /*
     * 功能描述〈充电桩新增〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/14 20:00
     * @throws
     */

    public Boolean addChargingStationfavoritesBytChargingStationfavoritesId(ChargingStationfavorites chargingStationfavorites) ;


    /*
     * 功能描述〈统计用户收藏充电桩〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/15 16:54
     * @throws
     */
    public Integer chargingStationfavoritesTotalByUserId(Integer userId);
}
